package cn.hznc.repository;

import cn.hznc.domain.entity.ProgramDurationTimeDailyInfoEntity;
import cn.hznc.domain.entity.ProgramDurationTimeEntity;
import cn.hznc.domain.request.program.ProgramUsageGroupReq;
import cn.hznc.domain.request.program.ProgramUsageIndex;
import cn.hznc.vo.ProgramUsageGroupVo;
import cn.hznc.vo.SubProgramUsageReportVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author：Administrator
 * @Date：2023/12/1 11:27
 */
public interface ProgramDurationTimeRepository {

    List<ProgramDurationTimeEntity> programUsageIndex(ProgramUsageIndex programUsageIndex);

    List<SubProgramUsageReportVo> programUsageGroup(ProgramUsageGroupReq programUsageIndex);

    List<SubProgramUsageReportVo> selectByProgramName(@Param("program") String name);

    List<SubProgramUsageReportVo> selectByProgramNameReload(@Param("programs") List<String> programs);

    List<SubProgramUsageReportVo> selectProgramDuration(@Param("programs") List<String> programs);

    List<ProgramDurationTimeDailyInfoEntity> selectDurationAvgTimeDaily();

}
